using System;
using System.Collections.Generic;
using System.Text;
using LeisureCenter.Api;

namespace DirectShowPlayer
{
    public class DirectShowPlugin : IPlugin
    {
        public IInstance leisureCenterInstance;

        #region IPlugin Membres

        public void Initialize(IInstance leisureCenterInstance)
        {
            this.leisureCenterInstance = leisureCenterInstance;
            leisureCenterInstance.PlayersManager.RegisterPlayer(DirectShowPlayer.Name, new DirectShowPlayer(this));
        }

        public void Finalize(IInstance leisureCenterInstance)
        {
            leisureCenterInstance.PlayersManager.UnRegisterPlayer(DirectShowPlayer.Name);
        }

        #endregion
    }
}
